gtk4.git
10 years agoAdwaita: Fix a few typos in README
Kalev Lember [Sun, 30 Aug 2015 19:12:35 +0000 (21:12 +0200)]
Adwaita: Fix a few typos in README

10 years agoUpdated Polish translation
Piotr Drąg [Sun, 30 Aug 2015 13:33:27 +0000 (15:33 +0200)]
Updated Polish translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sun, 30 Aug 2015 10:00:44 +0000 (10:00 +0000)]
Updated Portuguese translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Sun, 30 Aug 2015 08:09:16 +0000 (11:09 +0300)]
Updated Hebrew translation

10 years agogtkplacesview: don't warn for cancelled operations
Carlos Soriano [Sat, 29 Aug 2015 21:32:23 +0000 (23:32 +0200)]
gtkplacesview: don't warn for cancelled operations

This was intended to filter out cancelled operations, not
the other way around.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: make consistent loading state
Carlos Soriano [Sat, 29 Aug 2015 20:57:15 +0000 (22:57 +0200)]
gtkplacesview: make consistent loading state

Until now the code was not very clear about why the loading property is
needed, since we didn't forced all the async operations to mark the
view as loading. This cause that clients are not aware when the view
is busy on those situations.

For instance Nautilus uses the property for a few things, one of it
is to show a busy spinner on the tab title.

To improve the situation, mark as loading when a volume operation,
a mount operation or a connect to server operation is being performed.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: don't fetch networks if local only
Carlos Soriano [Sat, 29 Aug 2015 19:16:34 +0000 (21:16 +0200)]
gtkplacesview: don't fetch networks if local only

We were fetching networks even on local only mode.
Avoid to do extra work if not necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: dont invalidate headers if not necessary
Carlos Soriano [Sat, 29 Aug 2015 19:10:37 +0000 (21:10 +0200)]
gtkplacesview: dont invalidate headers if not necessary

We were invalidating the headers after adding the placeholder
row, but GtkListBox already update the header of that row in that
case.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: don't rely on widgets on headers
Carlos Soriano [Sat, 29 Aug 2015 18:36:48 +0000 (20:36 +0200)]
gtkplacesview: don't rely on widgets on headers

We are showing a GtkSpinner on the networks header to provide feedback
to the user if we are fetching networks, therefore we have to modify
the spinner state when doing it.
However GtkListBox doesn't give guarantees about the widgets
set by gtk_list_box_set_header, and we could access an invalid
widget.

To avoid to access invalid widgets, bind the fetching networks
view property to the networks header spinner active property instead
of modifying directly the spinner in the private structure.

Not having the spinner in the private structure also makes the code
cleaner.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: create placeholder before fetching networks
Carlos Soriano [Sat, 29 Aug 2015 18:35:10 +0000 (20:35 +0200)]
gtkplacesview: create placeholder before fetching networks

If not we don't show the header at all.
This was an accidental removal before commiting.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agogtkplacesview: only filter out placeholder if searching
Carlos Soriano [Thu, 27 Aug 2015 18:58:27 +0000 (20:58 +0200)]
gtkplacesview: only filter out placeholder if searching

We were filtering out placeholders if the list box filters
while not searching, which is not what we want, since placeholders
should only be hidden if the view is searching.

https://bugzilla.gnome.org/show_bug.cgi?id=754150

10 years agoUpdated Slovak translation
Dušan Kazik [Sun, 30 Aug 2015 06:51:51 +0000 (06:51 +0000)]
Updated Slovak translation

10 years agoUpdated Indonesian translation
Andika Triwidada [Sun, 30 Aug 2015 04:35:32 +0000 (04:35 +0000)]
Updated Indonesian translation

10 years agogtk-demo: Change an accel
Matthias Clasen [Sat, 29 Aug 2015 16:48:21 +0000 (12:48 -0400)]
gtk-demo: Change an accel

The application demo had a "Blue" and a "Bold" menuitem both with
the Ctrl-B accel. This is confusing, since only one of them works.
Change the accelerator for bold to Ctrl-Shift-B, so they both work.

10 years agoaccel group: Make gtk_accelerator_get_default_mod_mask more lenient
Matthias Clasen [Sat, 29 Aug 2015 16:23:18 +0000 (12:23 -0400)]
accel group: Make gtk_accelerator_get_default_mod_mask more lenient

Make this function harmless to call without an open display connection.
This happens during gobject introspection, which instantiates GTK+
types without calling gtk_init.

10 years agoUpdated Slovak translation
Dušan Kazik [Sat, 29 Aug 2015 15:42:29 +0000 (15:42 +0000)]
Updated Slovak translation

10 years agobuild: Do not call gtk_init()
Emmanuele Bassi [Sat, 29 Aug 2015 13:17:37 +0000 (14:17 +0100)]
build: Do not call gtk_init()

It needs to open a display connection, which is obviously going to fail
miserably on any headless build machine.

Instead, we need to find where we started requiring to initialize GTK
when calling a get_type() function, and stop doing that.

This commit and commit 15cc85db295b3d54f85c541b3c82d7b703c851c8 fully
revert commit 6838861d26bfec9af53438022bd1f5b60bab3bf4.

10 years agobuild: Do not force inclusion of gtk.h
Emmanuele Bassi [Sat, 29 Aug 2015 12:35:43 +0000 (13:35 +0100)]
build: Do not force inclusion of gtk.h

GCC will not do the right thing, and it will just break the build when
trying to include gtk.h first.

We'll have to live with the warning from the compiler about a missing
gtk_init() — though it would be better not to have to init GTK at all to
generate the introspection data.

This commit unbreaks the build in GNOME Continuous introduced by commit
6838861d26bfec9af53438022bd1f5b60bab3bf4.

10 years agoUpdated Slovak translation
Dušan Kazik [Sat, 29 Aug 2015 09:00:31 +0000 (09:00 +0000)]
Updated Slovak translation

10 years agoaccel label: Remove unneeded spaces
Matthias Clasen [Sat, 29 Aug 2015 07:12:59 +0000 (03:12 -0400)]
accel label: Remove unneeded spaces

Having these extra spaces in the accel string is a bit awkward,
since they will be included in text decorations such as underlines.
Removing them has no visible effect.

10 years agoFix introspection
Matthias Clasen [Sat, 29 Aug 2015 07:11:01 +0000 (03:11 -0400)]
Fix introspection

Calling our get_type functions without prior gtk_init() is not ok,
and causes warnings now. Avoid that by teaching g-ir-scanner to
put a gtk_init() call into its generated code.

10 years agoaccel label: Allow a different font for the accelerator
Matthias Clasen [Sat, 29 Aug 2015 04:47:32 +0000 (00:47 -0400)]
accel label: Allow a different font for the accelerator

We were using the .accelerator style for rendering the accel string,
but we need to explicitly set the font from this style for it to
apply.

10 years agoAdwaita, HighContrast: day names in GtkCalendar
Jakub Steiner [Thu, 27 Aug 2015 14:25:46 +0000 (16:25 +0200)]
Adwaita, HighContrast: day names in GtkCalendar

Ideally I'd like to mimic the treeview column-header style,
but font-weight: bold; doesn't seem to work. Making them plain
for now.

https://bugzilla.gnome.org/show_bug.cgi?id=753357

10 years agoplaces view: Always use the eject icon
Matthias Clasen [Fri, 28 Aug 2015 20:17:40 +0000 (16:17 -0400)]
places view: Always use the eject icon

Otherwise, we end up using different metaphors in the place view
and in the sidebar, and nobody is going to know what the disconnect
icon means in this context.

http://bugzilla.gnome.org/show_bug.cgi?id=754022

10 years agowayland: Make display closing work
Matthias Clasen [Fri, 28 Aug 2015 18:16:21 +0000 (14:16 -0400)]
wayland: Make display closing work

The code in _gdk_wayland_window_dispose was not safe against
being called twice - it would call g_hash_table_destroy twice
on the known_globals hash table, the second time operating on
freed memory. It was also leaking the list of async_roundtrips.

After fixing both of these issues, the displayclose testcase
now works on Wayland.

10 years agowayland: Be more careful when destroying windows
Matthias Clasen [Fri, 28 Aug 2015 17:55:23 +0000 (13:55 -0400)]
wayland: Be more careful when destroying windows

We call gdk_wayland_window_hide_surface when the window gets
destroyed, and in this case, the frame clock might not exist
anymore.

This was showing up in the displayclose testcase.

10 years agoTrivial formatting fix
Matthias Clasen [Fri, 28 Aug 2015 17:51:11 +0000 (13:51 -0400)]
Trivial formatting fix

10 years agowayland: Don't assert non-recursing in gdk_window_destroy
Matthias Clasen [Fri, 28 Aug 2015 17:48:46 +0000 (13:48 -0400)]
wayland: Don't assert non-recursing in gdk_window_destroy

While we do not have subwindows in Wayland, we do create an
artificial root window. When the display is closed, the root
window gets destroyed, causing recursing to be true for the
toplevel windows.

10 years agoTrivial formatting fix
Matthias Clasen [Fri, 28 Aug 2015 17:48:22 +0000 (13:48 -0400)]
Trivial formatting fix

10 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 28 Aug 2015 18:37:44 +0000 (18:37 +0000)]
Updated Greek translation

10 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 28 Aug 2015 18:37:03 +0000 (18:37 +0000)]
Updated Greek translation

10 years agoAdwaita: remove .list-row.activatable reset.
Lapo Calamandrei [Fri, 28 Aug 2015 17:18:35 +0000 (19:18 +0200)]
Adwaita: remove .list-row.activatable reset.

Since being 'activatable' istead of 'button' now that reset
is not needed anymore, the patch is pretty noisy since sass
interpreter changes, those look innocuous though.

10 years agoWork towards succeeding make check under Wayland
Matthias Clasen [Fri, 28 Aug 2015 16:54:32 +0000 (12:54 -0400)]
Work towards succeeding make check under Wayland

Skip tests that don't work under Wayland, such as tests for GtkPlug
and GtkSocket.

10 years agoplug/socket: Warn if used outside X11
Matthias Clasen [Fri, 28 Aug 2015 16:48:02 +0000 (12:48 -0400)]
plug/socket: Warn if used outside X11

Give a clear warning when either of these are realized on a non-X11
screen.

10 years agoMake display test not fail under Wayland
Matthias Clasen [Fri, 28 Aug 2015 16:26:25 +0000 (12:26 -0400)]
Make display test not fail under Wayland

This test really only works under X, since it relies on modifying
the DISPLAY env var.

10 years agoplaces view: Don't spew needlessly
Matthias Clasen [Fri, 28 Aug 2015 16:15:39 +0000 (12:15 -0400)]
places view: Don't spew needlessly

The check here was obviously meant to filter out cancellations,
not warn for them.

10 years agoUpdated Indonesian translation
Andika Triwidada [Fri, 28 Aug 2015 13:22:19 +0000 (13:22 +0000)]
Updated Indonesian translation

10 years agoUpdated German translation
Christian Kirbach [Thu, 27 Aug 2015 22:01:51 +0000 (22:01 +0000)]
Updated German translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Thu, 27 Aug 2015 20:19:12 +0000 (23:19 +0300)]
Updated Hebrew translation

10 years agoAdwaita: Make selector more specific
Benjamin Otte [Thu, 27 Aug 2015 18:18:40 +0000 (20:18 +0200)]
Adwaita: Make selector more specific

A * selector applies to all widgets, so even GtkBox or GtkGrid - and
most importantly GtkListBoxRow - need to recompute their style because
of the * selector.

By using a more specific one, these common cases aren't affected
anymore.

Fixes slowdowns in gtk3-demo's listbox demo and in gnome-software.

10 years agocombobox: Add a special class for the button in the combobox
Benjamin Otte [Thu, 27 Aug 2015 17:36:18 +0000 (19:36 +0200)]
combobox: Add a special class for the button in the combobox

That way, the GTK engine doesn't think that the general .button CSS
might potentially apply to it.
And because combobox button is overly complex and stupid, it cannot be
cached.

So buttons thought they cannot ever cache anything because they might
suddenly end up inside a combobox without noticing and then they'd need
to round their corners differently. Of course they're just regular
"Remove" buttons like all the other 100s of "Remove" buttons in
gnome-software. But hey, better not cache anything for them and
recompute their CSS every time the :hover state changes on one of the
rows.

10 years agocss: Add gtk_css_change_to_string()
Benjamin Otte [Thu, 27 Aug 2015 12:07:10 +0000 (14:07 +0200)]
css: Add gtk_css_change_to_string()

Nobody is able to look up those hex values.

10 years agocss: Fix GtkCssChange enum
Benjamin Otte [Thu, 27 Aug 2015 12:06:13 +0000 (14:06 +0200)]
css: Fix GtkCssChange enum

Get rid of unused values (POSITION_ENUM) and use different values for
NAME and ID.

10 years agocssnode: Loosen requirements for style caching
Benjamin Otte [Wed, 26 Aug 2015 16:01:39 +0000 (18:01 +0200)]
cssnode: Loosen requirements for style caching

We can actually share :first-child/:last-child related things now,
because we special case them. So the only positions we cannot cache are
nth-child/nth-last-child.

This should take care of a lot of Adwaita's styling.

10 years agoUpdated Hungarian translation
Gábor Kelemen [Thu, 27 Aug 2015 15:06:37 +0000 (15:06 +0000)]
Updated Hungarian translation

10 years agoHighContrast: GtkListBox fixes
Jakub Steiner [Thu, 27 Aug 2015 09:08:23 +0000 (11:08 +0200)]
HighContrast: GtkListBox fixes

Make flat buttons in list-rows work.

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Thu, 27 Aug 2015 09:09:20 +0000 (09:09 +0000)]
Updated Portuguese translation

10 years agoAdwaita: Theme calendar day names differently
Matthias Clasen [Thu, 27 Aug 2015 02:59:55 +0000 (22:59 -0400)]
Adwaita: Theme calendar day names differently

Just to show how its done. This will need some tweaks.

10 years agoflow box: Avoid a critical in keynav
Matthias Clasen [Wed, 26 Aug 2015 23:57:15 +0000 (19:57 -0400)]
flow box: Avoid a critical in keynav

We were not taking into account that gtk_flow_box_get_next_focusable
can return NULL, in all callers. Fix that.

10 years agotestflowbox: Add an example with buttons
Matthias Clasen [Wed, 26 Aug 2015 23:48:29 +0000 (19:48 -0400)]
testflowbox: Add an example with buttons

This example populates a flow box with buttons, and makes the
flow box children unfocusable, with the intention that the focus
moves directly between the buttons. Currently, keynav does not
work at all in this case.

10 years agogdkgears: Add a popover
Matthias Clasen [Wed, 26 Aug 2015 22:26:56 +0000 (18:26 -0400)]
gdkgears: Add a popover

As pointed out in bug 754143, this reveals a crash in the Wayland
backend.

10 years agoUpdated Polish translation
Piotr Drąg [Wed, 26 Aug 2015 15:09:31 +0000 (17:09 +0200)]
Updated Polish translation

10 years agoplaces view row: Use proper gettext macros
Piotr Drąg [Wed, 26 Aug 2015 14:45:33 +0000 (16:45 +0200)]
places view row: Use proper gettext macros

P_() is meant only for property nicks and blurbs. Everything
else should use _().

Follow-up to 2d83dd62173fc5e651e7df95f331ad5cc46a29cf

http://bugzilla.gnome.org/show_bug.cgi?id=754086

10 years agoinspector: Handle object destruction without row references
Benjamin Otte [Wed, 26 Aug 2015 14:33:52 +0000 (16:33 +0200)]
inspector: Handle object destruction without row references

This way, we can live without row references.

A side effect is that opening the inspector on the gtk-demo list box
example now only takes 0.5s instead of the previous 3 minutes.

10 years agoinspector: Implement find_object() without GtkTreeRowReference
Benjamin Otte [Wed, 26 Aug 2015 13:44:55 +0000 (15:44 +0200)]
inspector: Implement find_object() without GtkTreeRowReference

Tree row references are slow to update. And we update the widget list
quite a bit, so when it grows it can get REALLY slow.

10 years agoinspector: Refactor object tree construction
Benjamin Otte [Wed, 26 Aug 2015 13:28:22 +0000 (15:28 +0200)]
inspector: Refactor object tree construction

Instead of having lots of if statements, create a vtable. This will be
useful for the following patches.

10 years agowindow: Only update the inspector once
Benjamin Otte [Tue, 25 Aug 2015 17:46:09 +0000 (19:46 +0200)]
window: Only update the inspector once

Instead of queueing a new idle handler every time we call
gtk_window_update_debugging(), only queue one if none is queued that.

Saves a lot of work, in particular when templates create context menus
for every row in a large listbox as in the gtk-demo listbox example.

10 years agolistbox: Mark activatable rows with a .activatable style class
Benjamin Otte [Tue, 25 Aug 2015 00:08:29 +0000 (02:08 +0200)]
listbox: Mark activatable rows with a .activatable style class

Do not use .button anymore.

This is for 2 reasons:
1. The styling is seperate in our themes, so it doesn't make sense to
   share the style class.
2. Due to the shared styling of .buton, listbox rows inherit all the
   special case styles that exist for buttons - such as linked buttons,
   header buttons, entry buttons, spinbutton buttons, etc. This means
   that the code has to check all these special cases all the time and
   for listbox rows, this is very slow.

10 years agoUpdated Hungarian translation
Gábor Kelemen [Wed, 26 Aug 2015 12:55:27 +0000 (12:55 +0000)]
Updated Hungarian translation

10 years agoInspector: Protect against childless windows
Timm Bäder [Wed, 26 Aug 2015 09:54:01 +0000 (11:54 +0200)]
Inspector: Protect against childless windows

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 26 Aug 2015 05:33:35 +0000 (05:33 +0000)]
Updated Portuguese translation

10 years agoplaces view: Use proper gettext macros
Matthias Clasen [Wed, 26 Aug 2015 03:28:56 +0000 (23:28 -0400)]
places view: Use proper gettext macros

P_() is meant only for property nicks and blurbs. Everything
else should use _().

http://bugzilla.gnome.org/show_bug.cgi?id=754086

10 years agoUpdated Chinese (Taiwan) translation
Chao-Hsiung Liao [Tue, 25 Aug 2015 22:41:58 +0000 (22:41 +0000)]
Updated Chinese (Taiwan) translation

10 years agoUpdated Chinese (Taiwan) translation
Chao-Hsiung Liao [Tue, 25 Aug 2015 22:40:15 +0000 (22:40 +0000)]
Updated Chinese (Taiwan) translation

10 years agoflow box: Document incompatible configurations
Matthias Clasen [Tue, 25 Aug 2015 17:58:40 +0000 (13:58 -0400)]
flow box: Document incompatible configurations

Explain in the docs that using a model is incompatible with
using filter or sort functions.

10 years agoflow box: Warn for nonworking configurations
Matthias Clasen [Tue, 25 Aug 2015 17:28:49 +0000 (13:28 -0400)]
flow box: Warn for nonworking configurations

GtkFlowBox sort and filter functionality does not work with
models. Issue a warning in this case.

10 years agolist box: Document incompatible configurations
Matthias Clasen [Tue, 25 Aug 2015 17:20:53 +0000 (13:20 -0400)]
list box: Document incompatible configurations

Explain in the docs that using a model is incompatible with
using filter or sort functions.

http://bugzilla.gnome.org/show_bug.cgi?id=752615

10 years agolist box: Warn for nonworking configurations
Matthias Clasen [Tue, 25 Aug 2015 17:16:24 +0000 (13:16 -0400)]
list box: Warn for nonworking configurations

GtkListBox sort and filter functionality does not work with
models. Issue a warning in this case.

http://bugzilla.gnome.org/show_bug.cgi?id=752615

10 years agoFix a startup ordering problem
Matthias Clasen [Fri, 9 Jan 2015 04:16:39 +0000 (23:16 -0500)]
Fix a startup ordering problem

Defer a11y initialization until we have a display. A11y initialization
causes widget classes to be initalized, which in turn needs some
backend-specific information about modifier masks that can't be
obtained before we have a display.

https://bugzilla.gnome.org/show_bug.cgi?id=736125

10 years agoBug 736125 - The default gtk accelerator mod mask does not include all default backen...
John Ralls [Thu, 25 Dec 2014 00:10:12 +0000 (16:10 -0800)]
Bug 736125 - The default gtk accelerator mod mask does not include all default backend modifiers

10 years agoInspector: Make monitor rows unactivatable
Timm Bäder [Mon, 24 Aug 2015 14:06:08 +0000 (16:06 +0200)]
Inspector: Make monitor rows unactivatable

10 years agoFix grammar in "No networks locations found"
Piotr Drąg [Tue, 25 Aug 2015 15:11:17 +0000 (17:11 +0200)]
Fix grammar in "No networks locations found"

10 years agoUpdate Galician translations
Fran Dieguez [Tue, 25 Aug 2015 14:43:42 +0000 (16:43 +0200)]
Update Galician translations

10 years agoUpdated Galician translations
Fran Dieguez [Tue, 25 Aug 2015 14:29:19 +0000 (16:29 +0200)]
Updated Galician translations

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Aug 2015 09:07:47 +0000 (11:07 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Aug 2015 09:07:23 +0000 (11:07 +0200)]
Updated Spanish translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Tue, 25 Aug 2015 06:13:59 +0000 (06:13 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Tue, 25 Aug 2015 06:10:53 +0000 (06:10 +0000)]
Updated Portuguese translation

10 years agogtk-demo: Update listbox example with longer list
Benjamin Otte [Mon, 24 Aug 2015 19:23:49 +0000 (21:23 +0200)]
gtk-demo: Update listbox example with longer list

Add all 388 tweets of the @GTKtoolkit account. This shows the
performance behavior of the listbox (not good with that many rows) and
allows us to quickly notice when things get worse (or better).

And just so I have a place where I can dump how I generated this file:

First, I got Timm Bäder to download me the json for the twitter feed
into a file gtk.json, then I ran the jq tool on it like this:

jq ".[] | if .retweeted_status then .retweeted_status.user.name + \"|\"
+ .retweeted_status.user.screen_name else .user.name + \"|\" +
.user.screen_name end + \"|\" + .text" gtk.json | cat -n | sed
"s/\\s*\([0-9]*\)\t\"\(.*\)\"/\\1|\\2/" > messages.start

jq ".[] | .created_at" gtk.json | sed "s/\"\(.*\)\"/\1/" | while read
in; do date +%s -d "$in"; done > dates

jq ".[] | \"0|\" + if .retweeted_status then .user.screen_name else \"\"
end + \"|\" + (.favorite_count | tostring) + \"|\" + (.retweet_count |
tostring)" gtk.json | sed "s/\"\(.*\)\"/\\1/" > messages.end

paste -d\| messages.start dates messages.end > messages.txt

This whole machinery of going through 3 intermediate files was only
necessary to onvert the dates from ISO format to unix timestamps,
otherwise this could have been a single line.

10 years agogtk-demo: Order tweets newest first in listbox example
Benjamin Otte [Mon, 24 Aug 2015 19:23:29 +0000 (21:23 +0200)]
gtk-demo: Order tweets newest first in listbox example

10 years agoUpdated Slovak translation
Dušan Kazik [Mon, 24 Aug 2015 16:30:15 +0000 (16:30 +0000)]
Updated Slovak translation

10 years agoUpdated Slovak translation
Dušan Kazik [Mon, 24 Aug 2015 16:08:34 +0000 (16:08 +0000)]
Updated Slovak translation

10 years agofilechooser: check if we can access the parent folder
Paolo Borelli [Sat, 22 Aug 2015 16:20:17 +0000 (18:20 +0200)]
filechooser: check if we can access the parent folder

If we manually enter an unaccessible path in the entry, e.g
"/root/foo.txt", we should receive an error saying that the
folder is not accessible instead of showing the replace
confirmation dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=753969

10 years agoRevert "gtkoverlay: Optimize size allocations"
Matthias Clasen [Sat, 22 Aug 2015 15:22:27 +0000 (11:22 -0400)]
Revert "gtkoverlay: Optimize size allocations"

This reverts commit 93171cf4f346c0a5e71f274d012c3cacfe3880ba.

This broke overlay controls in page 3 of widget-factory, gnome-photos,
gnome-documents, etc.

10 years agolist box: Make focusable headers possible
Matthias Clasen [Sat, 22 Aug 2015 00:51:03 +0000 (20:51 -0400)]
list box: Make focusable headers possible

Previously we were assuming that only list box rows could occur
as focus children of a list box, and would crash if that wasn't
the case. This commit handles this case, and integrates focusable
headers into directional keynav and the focus chain.

The typical case of using separators as headers is not affected
by this change.

https://bugzilla.gnome.org/show_bug.cgi?id=753694

10 years agoGtkOverlay: Update the description
Matthias Clasen [Fri, 21 Aug 2015 22:19:26 +0000 (18:19 -0400)]
GtkOverlay: Update the description

State that the overlays are placed wrt to the GtkOverlay, not
with respect to the main widget. This makes a difference for
small main widgets which are not configured to fill the entire
GtkOverlay.

10 years agoRevert "popover: Optimize the transition"
Matthias Clasen [Fri, 21 Aug 2015 22:08:30 +0000 (18:08 -0400)]
Revert "popover: Optimize the transition"

This reverts commit 84bd32a09a25bee24ae7740e30bd75727695d744.

It turned out that this did break the transition in some places.

10 years agogtkplacesview: bail out if operation cancelled
Carlos Soriano [Fri, 21 Aug 2015 17:57:07 +0000 (19:57 +0200)]
gtkplacesview: bail out if operation cancelled

When an operation is cancelled it's never safe to access
the object itself or the private struct, since it could be
called (and probably is) during finalize.

In case the operation is cancelled, just bail out to fix
the crashes.

10 years agoUpload Catalan translator
Jordi Mas [Fri, 21 Aug 2015 16:21:06 +0000 (18:21 +0200)]
Upload Catalan translator

10 years agogtkplacessidebar: order mounts by label
Carlos Soriano [Fri, 21 Aug 2015 13:00:07 +0000 (15:00 +0200)]
gtkplacessidebar: order mounts by label

We were not ordering them at all, and therefore they were
jumping around

https://bugzilla.gnome.org/show_bug.cgi?id=753925

10 years agogtkplacesview: use g_utf8_collate for sorting
Carlos Soriano [Fri, 21 Aug 2015 12:49:11 +0000 (14:49 +0200)]
gtkplacesview: use g_utf8_collate for sorting

Also rename the variable, since we usually use location
for GFiles variables.

10 years agogtkplacesview: add a loading property
Carlos Soriano [Wed, 19 Aug 2015 12:46:34 +0000 (14:46 +0200)]
gtkplacesview: add a loading property

So clients of the view can know if the view is busy.

https://bugzilla.gnome.org/show_bug.cgi?id=753786

10 years agogtkplacesview: improve networks feedback
Carlos Soriano [Tue, 18 Aug 2015 21:26:07 +0000 (23:26 +0200)]
gtkplacesview: improve networks feedback

Add a spinner when networks are being fetched and make
the network section permanent and show a placeholder with
a message that no networks were found in case there are no
networks. In this way users from previous versions won't be
confused with the fact that no networks are shown.

https://bugzilla.gnome.org/show_bug.cgi?id=753786

10 years agogtkplacesview: add networks in network:///
Carlos Soriano [Tue, 18 Aug 2015 15:58:41 +0000 (17:58 +0200)]
gtkplacesview: add networks in network:///

Previously we had a network item in the sidebar, which now
is replaced by the network section on other-locations view.
However we were not exposing the networks in network:///.

Fetch them and add them in the network section of other-locations
view.

https://bugzilla.gnome.org/show_bug.cgi?id=753786

10 years agogtkplacesview: style fix
Carlos Soriano [Tue, 18 Aug 2015 07:43:48 +0000 (09:43 +0200)]
gtkplacesview: style fix

https://bugzilla.gnome.org/show_bug.cgi?id=753786

10 years agoUpdated Slovak translation
Dušan Kazik [Fri, 21 Aug 2015 08:55:24 +0000 (08:55 +0000)]
Updated Slovak translation

10 years agowayland: Only bind supported unstable pointer gestures global
Jonas Ådahl [Thu, 20 Aug 2015 03:38:43 +0000 (11:38 +0800)]
wayland: Only bind supported unstable pointer gestures global

As the protocol is still considered unstable (meaning not backward
compatible), we should, as stated in the protocol, only bind the version
advertised is the version we implement.

https://bugzilla.gnome.org/show_bug.cgi?id=753856

10 years agooverlay: Always align widgets relative to the overlay
Benjamin Otte [Thu, 20 Aug 2015 22:46:35 +0000 (00:46 +0200)]
overlay: Always align widgets relative to the overlay

... not to the contained widget, which might not occupy the whole
overlay when an align mode is set.

10 years agooverlay: Use actual size of the overlay when positioning
Benjamin Otte [Thu, 20 Aug 2015 22:44:17 +0000 (00:44 +0200)]
overlay: Use actual size of the overlay when positioning

Previously we were using the natural requested size which is unrelated.

10 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 20 Aug 2015 20:01:41 +0000 (23:01 +0300)]
Updated Lithuanian translation